/**
 * 2015-12-18
 * Course.java
 * author:sherlochao
 */
package com.sherlochao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author yinchao
 *
 */
@Entity
@Table(name = "course")
public class Course {
	@Id
	@Column(name = "id", nullable = false, length = 12)
	private String courseNumber;
	
	@Column(name = "course_name", nullable = false, length = 32)
	private String courseName;
	
	@Column(name = "teacher_id", nullable = false, length = 12)
	private String teacherId;

	public Course(String courseNumber, String courseName, String teacherId) {
		super();
		this.courseNumber = courseNumber;
		this.courseName = courseName;
		this.teacherId = teacherId;
	}

	public Course() {
		super();
	}

	public String getCourseNumber() {
		return courseNumber;
	}

	public void setCourseNumber(String courseNumber) {
		this.courseNumber = courseNumber;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	@Override
	public String toString() {
		return "Course [courseNumber=" + courseNumber + ", courseName="
				+ courseName + ", teacherId=" + teacherId + "]";
	}
	
	
	
}
